package com.zhouchao.dao;

import com.zhouchao.pojo.User;

import java.util.List;

/**
 * @Author: zhouchao
 * @Date: 2021/05/04 17:16
 * @Description:
 */
public interface IUserMapper {
    //查询所有用户
    public List<User> findAll() throws Exception;


    //根据条件进行用户查询
    public User findByCondition(User user) throws Exception;

    //添加用户
    int saveByEntity(User user);

    //修改用户
    int updateByEntity(User user);

    //根据id删除用户
    int deleteByUserId(int id);

    //删除用户
    int deleteByEntity(User user);
}
